package cn.wolfcode.car.business.service;

import cn.wolfcode.car.business.domain.CarPackageAudit;
import cn.wolfcode.car.business.query.CarPackageAuditQuery;
import cn.wolfcode.car.business.query.CarPackageAuditQueryUp;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.InputStream;

/**
 * @Author WaveHi
 * @Date 17/11/2021 下午 2:59
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public interface CarPackageAuditService extends IService<CarPackageAudit> {
    TablePageInfo<CarPackageAudit> getPartOfCarPackageAudits(CarPackageAuditQuery carPackageAuditQuery);

    Boolean add(CarPackageAudit carPackageAudit);

    Boolean update(CarPackageAudit carPackageAudit);

    InputStream getProcessImageByAuditId(Long id);

    CarPackageAudit getCarPackageAudit(Long id);

    Boolean cancel(Long id);

    TablePageInfo<CarPackageAudit> getWork(Long id);

    TablePageInfo<CarPackageAudit> getWork(CarPackageAuditQueryUp carPackageAuditQuery);

    void audit(Long id, Integer auditStatus, String info);

    TablePageInfo<CarPackageAudit> getWork(String userName);
}
